/*Driver for I/O Ports
 *
*/

#include "system.h"
#include "stdtypedef.h"
#include "drv_ioports.h"


void init_ports(){
    /*Port A Configuration*/
    PORTA = 0x00;
    TRISA = 0xFF;
    /*Port B Configuration*/
    PORTB = 0x00;
    TRISB = 0x00;
    /*Port C Configuration*/
    PORTC = 0X00;
    TRISC = 0b10000000;
    /*Port D Configuration*/
    PORTD = 0x00;
    TRISD = 0x00;
    /*Port E Configuration*/
    PORTE = 0x00;
    TRISE = 0XFF;
}